package ${package_name}.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.*;


/**
 * @author code auto
 */
@TableName("${table_entity.tableName}")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ${table_entity.entityName} {

    @TableId(value = "${table_entity.keyColumnProperty.columnName}", type = IdType.AUTO)
    private ${table_entity.keyColumnProperty.javaType} ${table_entity.keyColumnProperty.propertyName};

<#if property_columns?exists>
    <#list property_columns as model>
    /**
    *${model.description!}
    */
    <#if model.columnName == version_column>
    @Version
    </#if>
    @TableField(value = "${model.columnName}")
    private ${model.javaType} ${model.propertyName};

    </#list>
</#if>
}
